<!DOCTYPE html>
<div>
<head>
    <title>学员考核</title>
	<#include "/header.html">
    <script src="${request.contextPath}/statics/libs/ajaxupload.js"></script>
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
<!--            <div class="form-group col-sm-2">-->
                <input type="text" class="form-control" style="display: inline; width: 15%;" v-model="q.examDate" @keyup.enter="query" placeholder="日期">
                <input type="text" class="form-control" style="display: inline; width: 15%;" v-model="q.studentCode" @keyup.enter="query" placeholder="编号">
                <input type="text" class="form-control" style="display: inline; width: 15%;" v-model="q.name" @keyup.enter="query" placeholder="姓名">
            &nbsp;&nbsp;是否合格&nbsp;&nbsp;
                <select class="form-control" style="display: inline; width: 10%;" v-model="q.shapeLevel">
                    <option value=""></option>
                    <option value="0">不合格</option>
                    <option value="1">合格</option>
                </select>
            &nbsp;&nbsp;等级评定&nbsp;&nbsp;
                <select class="form-control" style="display: inline; width: 10%;" v-model="q.level">
                    <option value=""></option>
                    <option value="1">不及格</option>
                    <option value="2">及格</option>
                    <option value="3">良好</option>
                    <option value="4">优秀</option>
                    <option value="5">特三级</option>
                    <option value="6">特二级</option>
                    <option value="7">特一级</option>
                </select>
<!--            </div>-->
<!--            <div class="form-group col-sm-2">-->
<!--                <input type="text" class="form-control" v-model="q.studentCode" @keyup.enter="query" placeholder="编号">-->
<!--            </div>-->
            &nbsp;&nbsp;&nbsp;&nbsp;
            &nbsp;&nbsp;&nbsp;<a class="btn btn-default" @click="query">查询</a>
            <br/>
            <div style="padding-top: 7px">
                <#if shiro.hasPermission("exam:exam:save")>
                <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
                </#if>
                <#if shiro.hasPermission("exam:exam:update")>
                <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
                </#if>
                <#if shiro.hasPermission("exam:exam:update")>
                <a class="btn btn-primary" @click="downloadTemp"><i class="fa fa-plus"></i>&nbsp;下载考核模板</a>
                </#if>
                <#if shiro.hasPermission("exam:exam:update")>
                <a class="btn btn-primary" id="upload"><i class="fa fa-plus"></i>&nbsp;上传考核成绩</a>
                </#if>
                <#if shiro.hasPermission("exam:exam:download")>
                <a class="btn btn-primary" @click="downloadEx"><i class="fa fa-plus"></i>&nbsp;下载考核成绩</a>
                </#if>
                <#if shiro.hasPermission("exam:exam:delete")>
                <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
                </#if>
            </div>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">

                    <div class="form-group">
                        <div class="col-sm-2 control-label">日期</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" id="examDateId" v-model="exam.examDate" placeholder="日期" readonly="true"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-2 control-label">编号</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="exam.studentCode" placeholder="编号"/>
                        </div>
                    </div>
					<div class="form-group">
                        <div class="col-sm-2 control-label">姓名</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="exam.name" placeholder="姓名"/>
                        </div>
                    </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">身高(cm)</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="exam.height" placeholder="身高"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">体重(kg)</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="exam.weight" placeholder="体重"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">BMI</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" style="display: inline; width: 38%;" v-model="exam.bmi" placeholder="BMI" readonly="true"/>
                    &nbsp;&nbsp;是否合格&nbsp;&nbsp;
                    <select class="form-control" style="display: inline; width: 40%;" disabled="disabled" v-model="exam.shapeLevel">
                        <option value="0">不合格</option>
                        <option value="1">合格</option>
                    </select>
                </div>
            </div>

                    <div class="form-group">
                        <div class="col-sm-2 control-label">引体向上</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="exam.leadUp" placeholder="引体向上"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-2 control-label">曲臂悬垂(秒)</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="exam.crankArm" placeholder="曲臂悬垂(秒), 例子：1分10秒填入：70"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-2 control-label">引体曲臂成绩</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="exam.crankArmScore" placeholder="引体曲臂成绩" readonly="true"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-2 control-label">俯卧撑</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" style="display: inline; width: 43%;" v-model="exam.pushUp" placeholder="俯卧撑"/>
                            &nbsp;&nbsp;成绩&nbsp;&nbsp;
                            <input type="text" class="form-control" style="display: inline; width: 43%;" v-model="exam.pushUpScore" placeholder="成绩" readonly="true"/>
                        </div>
                    </div>
<!--                    <div class="form-group">-->
<!--                        <div class="col-sm-2 control-label">成绩</div>-->
<!--                        <div class="col-sm-10">-->
<!--                            <input type="text" class="form-control" v-model="exam.pushUpScore" placeholder="成绩" readonly="true"/>-->
<!--                        </div>-->
<!--                    </div>-->
                    <div class="form-group">
                        <div class="col-sm-2 control-label">仰卧起坐</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" style="display: inline; width: 43%;" v-model="exam.sitUp" placeholder="仰卧起坐"/>
                            &nbsp;&nbsp;成绩&nbsp;&nbsp;
                            <input type="text" class="form-control" style="display: inline; width: 43%;" v-model="exam.sitUpScore" placeholder="成绩" readonly="true"/>
                        </div>
                    </div>
<!--                    <div class="form-group">-->
<!--                        <div class="col-sm-2 control-label">成绩</div>-->
<!--                        <div class="col-sm-10">-->
<!--                            <input type="text" class="form-control" v-model="exam.sitUpScore" placeholder="成绩" readonly="true"/>-->
<!--                        </div>-->
<!--                    </div>-->
                    <div class="form-group">
                        <div class="col-sm-2 control-label">蛇形跑(秒)</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" style="display: inline; width: 43%;" v-model="exam.snakeRun" placeholder="蛇形跑(秒)"/>
                            &nbsp;&nbsp;成绩&nbsp;&nbsp;
                            <input type="text" class="form-control" style="display: inline; width: 43%;" v-model="exam.snakeRunScore" placeholder="成绩" readonly="true"/>
                        </div>
                    </div>
<!--                    <div class="form-group">-->
<!--                        <div class="col-sm-2 control-label">成绩</div>-->
<!--                        <div class="col-sm-10">-->
<!--                            <input type="text" class="form-control" v-model="exam.snakeRunScore" placeholder="成绩" readonly="true"/>-->
<!--                        </div>-->
<!--                    </div>-->
                    <div class="form-group">
                        <div class="col-sm-2 control-label">中长跑(分.秒)</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" style="display: inline; width: 43%;" v-model="exam.middleRun" placeholder="中长跑(分.秒)"/>
                            &nbsp;&nbsp;成绩&nbsp;&nbsp;
                            <input type="text" class="form-control" style="display: inline; width: 43%;" v-model="exam.middleRunScore" placeholder="成绩" readonly="true"/>
                        </div>
                    </div>
<!--                    <div class="form-group">-->
<!--                        <div class="col-sm-2 control-label">成绩</div>-->
<!--                        <div class="col-sm-10">-->
<!--                            <input type="text" class="form-control" v-model="exam.middleRunScore" placeholder="成绩"/>-->
<!--                        </div>-->
<!--                    </div>-->
                    <div class="form-group">
                        <div class="col-sm-2 control-label">成绩总评</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="exam.totalScore" placeholder="成绩总评" readonly="true"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-2 control-label">等级评定</div>
                        <div class="col-sm-10">
<!--                            <input type="text" class="form-control" v-model="exam.level" placeholder="登记评定" readonly="true"/>-->
                            <select class="form-control" disabled="disabled" v-model="exam.level">
                                <option value="1">不及格</option>
                                <option value="2">及格</option>
                                <option value="3">良好</option>
                                <option value="4">优秀</option>
                                <option value="5">特三级</option>
                                <option value="6">特二级</option>
                                <option value="7">特一级</option>
                            </select>
                        </div>
                    </div>

					<div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/exam/exam.js?_${.now?long}"></script>
</body>
</html>